<?php
/**
 * @version        $Id$
 * @author         master@xuewl.com
 * @copyright      Copyright (c) 2007 - 2014, Chongqing xuewl Information Technology Co., Ltd.
 * @link           http://www.xuewl.com
**/
class member { 
    function __construct() {
        $this->categorys = getcache('category','commons');
        $this->models = getcache('model','commons');
    }

    public function lists($data) {
    	$sqlMap = array();
    	if (isset($data['where'])) {
    		$sqlMap['_string'] = $data;
    	}
    	if (isset($data['uids'])) {
    		$uids = (!is_array($data['uids'])) ? explode(",", $data['uids']) : $data['uids'];
    		$sqlMap['userid'] = array("IN", $uids);
    	}
    	return D('Member')->where($sqlMap)->order($data['order'])->limit($data['limit'])->select();
    }

    public function activitie($data) {
        
    }
}